package com.huifaapp.mall.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by duanyu on 2017/12/27.
 */

public class ImageBeanDemon implements Parcelable {
    private boolean isSelect = false;
    private  String name;


    protected ImageBeanDemon(Parcel in) {
        isSelect = in.readByte() != 0;
        name = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeByte((byte) (isSelect ? 1 : 0));
        dest.writeString(name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ImageBeanDemon> CREATOR = new Creator<ImageBeanDemon>() {
        @Override
        public ImageBeanDemon createFromParcel(Parcel in) {
            return new ImageBeanDemon(in);
        }

        @Override
        public ImageBeanDemon[] newArray(int size) {
            return new ImageBeanDemon[size];
        }
    };

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
